/*
 * (c) 2014 Virtusa Corporation.
 * All Rights Reserved
 */
package ead.cs.service.impl;

import ead.cs.domain.Alert;
import ead.cs.repository.AlertRepository;
import ead.cs.service.AlertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlertServiceImpl implements AlertService {

    @Autowired
    private AlertRepository alertRepository;

    @Override
    public List<Alert> getBackOfficeAlerts() {
        return alertRepository.findAll();
    }

    @Override
    public Alert save(Alert alert) {
        return alertRepository.save(alert);
    }
}
